package com.slj.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName book
 */
@Data
public class Book {
    private Integer id;

    private String bookName;

    private String author;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date publicationDate;

    private BigDecimal price;

    private String coverImageUrl;

    private Integer bookTypeId;

    private Date createdAt;

    private Date updatedAt;

    private BookTypes bookTypes;

    private static final long serialVersionUID = 1L;
}